package com.wzy.peopleManagement.commond
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.wzy.peopleManagement.business.UserDeledate;
	import com.wzy.peopleManagement.model.LoginModel;
	
	import mx.collections.ArrayCollection;
	import mx.rpc.IResponder;

	public class LoadAllUserCommand implements IResponder, ICommand
	{
		public function LoadAllUserCommand()
		{
			var deleDate : UserDeledate = new UserDeledate(this);
			deleDate.loadAllUser();
		}

		public function result(data:Object):void
		{
			var objTemp : Object = Object(data.result);
			if(objTemp.SORF == "true") {
				var acTemp : ArrayCollection = objTemp.VALUE;
				if(acTemp != null) {
					LoginModel.getInstance().acAllUser = acTemp;
				}
			}
		}
		
		public function fault(info:Object):void
		{
		}
		
		public function execute(event:CairngormEvent):void
		{
		}
		
	}
}